package 状态设计模式;
public class EndState implements State{
    @Override
    public void doAction(Context context)
    {
        System.out.println("Player is in End State");
        context.setState(this);
    }

    @Override
    public String toString(){
        return "End State...";
    }
}
